home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / lisp / prim / device.elc < prev    next >
Emacs Compiled Lisp  |  1995-08-29  |  1.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
1% dexvert Combustion 2 Particle Library (other/combustion2ParticleLibrary) ext Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
100% xdgMime text/x-emacs-lisp default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 34 3a 32 30 3a 31 | 33 20 31 39 39 35 0a 3b | 14:20:1|3 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 78 65 |;; from |file /xe|
|00000060| 6d 61 63 73 2f 78 65 6d | 61 63 73 2d 31 39 2e 31 |macs/xem|acs-19.1|
|00000070| 33 2d 72 65 6c 65 61 73 | 65 2f 65 64 69 74 6f 72 |3-releas|e/editor|
|00000080| 2f 6c 69 73 70 2f 70 72 | 69 6d 2f 64 65 76 69 63 |/lisp/pr|im/devic|
|00000090| 65 2e 65 6c 0a 3b 3b 3b | 20 65 6d 61 63 73 20 76 |e.el.;;;| emacs v|
|000000a0| 65 72 73 69 6f 6e 20 31 | 39 2e 31 33 20 58 45 6d |ersion 1|9.13 XEm|
|000000b0| 61 63 73 20 4c 75 63 69 | 64 2e 0a 3b 3b 3b 20 62 |acs Luci|d..;;; b|
|000000c0| 79 74 65 63 6f 6d 70 20 | 76 65 72 73 69 6f 6e 20 |ytecomp |version |
|000000d0| 32 2e 32 35 3b 20 31 2d | 53 65 70 2d 39 34 2e 0a |2.25; 1-|Sep-94..|
|000000e0| 3b 3b 3b 20 6f 70 74 69 | 6d 69 7a 61 74 69 6f 6e |;;; opti|mization|
|000000f0| 20 69 73 20 6f 6e 2e 0a | 3b 3b 3b 20 74 68 69 73 | is on..|;;; this|
|00000100| 20 66 69 6c 65 20 75 73 | 65 73 20 6f 70 63 6f 64 | file us|es opcod|
|00000110| 65 73 20 77 68 69 63 68 | 20 64 6f 20 6e 6f 74 20 |es which| do not |
|00000120| 65 78 69 73 74 20 69 6e | 20 45 6d 61 63 73 20 31 |exist in| Emacs 1|
|00000130| 38 2e 0a 0a 28 69 66 20 | 28 61 6e 64 20 28 62 6f |8...(if |(and (bo|
|00000140| 75 6e 64 70 20 27 65 6d | 61 63 73 2d 76 65 72 73 |undp 'em|acs-vers|
|00000150| 69 6f 6e 29 0a 09 20 28 | 6f 72 20 28 61 6e 64 20 |ion).. (|or (and |
|00000160| 28 62 6f 75 6e 64 70 20 | 27 65 70 6f 63 68 3a 3a |(boundp |'epoch::|
|00000170| 76 65 72 73 69 6f 6e 29 | 20 65 70 6f 63 68 3a 3a |version)| epoch::|
|00000180| 76 65 72 73 69 6f 6e 29 | 0a 09 20 20 20 20 20 28 |version)|.. (|
|00000190| 73 74 72 69 6e 67 2d 6c | 65 73 73 70 20 65 6d 61 |string-l|essp ema|
|000001a0| 63 73 2d 76 65 72 73 69 | 6f 6e 20 22 31 39 22 29 |cs-versi|on "19")|
|000001b0| 29 29 0a 20 20 20 20 28 | 65 72 72 6f 72 20 22 54 |)). (|error "T|
|000001c0| 68 69 73 20 66 69 6c 65 | 20 77 61 73 20 63 6f 6d |his file| was com|
|000001d0| 70 69 6c 65 64 20 66 6f | 72 20 45 6d 61 63 73 20 |piled fo|r Emacs |
|000001e0| 31 39 2e 22 29 29 0a 0a | 28 66 73 65 74 20 27 71 |19."))..|(fset 'q|
|000001f0| 75 69 74 2d 63 68 61 72 | 20 23 5b 28 26 6f 70 74 |uit-char| #[(&opt|
|00000200| 69 6f 6e 61 6c 20 64 65 | 76 69 63 65 29 20 22 c0 |ional de|vice) ".|
|00000210| c1 5c 6e 21 38 87 22 20 | 5b 33 20 63 75 72 72 65 |.\n!8." |[3 curre|
|00000220| 6e 74 2d 69 6e 70 75 74 | 2d 6d 6f 64 65 20 64 65 |nt-input|-mode de|
|00000230| 76 69 63 65 5d 20 33 20 | 22 5c 0a 52 65 74 75 72 |vice] 3 |"\.Retur|
|00000240| 6e 20 74 68 65 20 63 68 | 61 72 61 63 74 65 72 20 |n the ch|aracter |
|00000250| 74 68 61 74 20 63 61 75 | 73 65 73 20 61 20 51 55 |that cau|ses a QU|
|00000260| 49 54 20 74 6f 20 68 61 | 70 70 65 6e 2e 0a 54 68 |IT to ha|ppen..Th|
|00000270| 69 73 20 69 73 20 6e 6f | 72 6d 61 6c 6c 79 20 43 |is is no|rmally C|
|00000280| 2d 67 2e 20 20 4f 70 74 | 69 6f 6e 61 6c 20 61 72 |-g. Opt|ional ar|
|00000290| 67 20 44 45 56 49 43 45 | 20 73 70 65 63 69 66 69 |g DEVICE| specifi|
|000002a0| 65 73 20 74 68 65 20 64 | 65 76 69 63 65 0a 74 68 |es the d|evice.th|
|000002b0| 61 74 20 74 68 65 20 69 | 6e 66 6f 72 6d 61 74 69 |at the i|nformati|
|000002c0| 6f 6e 20 69 73 20 72 65 | 74 75 72 6e 65 64 20 66 |on is re|turned f|
|000002d0| 6f 72 3b 20 6e 69 6c 20 | 6d 65 61 6e 73 20 74 68 |or; nil |means th|
|000002e0| 65 20 63 75 72 72 65 6e | 74 20 64 65 76 69 63 65 |e curren|t device|
|000002f0| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 6d 61 6b 65 |."]).(fs|et 'make|
|00000300| 2d 74 74 79 2d 64 65 76 | 69 63 65 20 23 5b 28 26 |-tty-dev|ice #[(&|
|00000310| 6f 70 74 69 6f 6e 61 6c | 20 74 74 79 20 74 65 72 |optional| tty ter|
|00000320| 6d 69 6e 61 6c 2d 74 79 | 70 65 29 20 22 c0 c1 89 |minal-ty|pe) "...|
|00000330| 09 42 c2 5c 6e 42 44 5c | 22 87 22 20 5b 6d 61 6b |.B.\nBD\|"." [mak|
|00000340| 65 2d 64 65 76 69 63 65 | 20 74 74 79 20 74 65 72 |e-device| tty ter|
|00000350| 6d 69 6e 61 6c 2d 74 79 | 70 65 5d 20 35 20 22 5c |minal-ty|pe] 5 "\|
|00000360| 0a 43 72 65 61 74 65 20 | 61 20 6e 65 77 20 64 65 |.Create |a new de|
|00000370| 76 69 63 65 20 6f 6e 20 | 54 54 59 2e 0a 20 20 54 |vice on |TTY.. T|
|00000380| 54 59 20 73 68 6f 75 6c | 64 20 62 65 20 74 68 65 |TY shoul|d be the|
|00000390| 20 6e 61 6d 65 20 6f 66 | 20 61 20 74 74 79 20 64 | name of| a tty d|
|000003a0| 65 76 69 63 65 20 66 69 | 6c 65 20 28 65 2e 67 2e |evice fi|le (e.g.|
|000003b0| 20 5c 22 2f 64 65 76 2f | 74 74 79 70 33 5c 22 20 | \"/dev/|ttyp3\" |
|000003c0| 75 6e 64 65 72 0a 53 75 | 6e 4f 53 20 65 74 20 61 |under.Su|nOS et a|
|000003d0| 6c 2e 29 2c 20 61 73 20 | 72 65 74 75 72 6e 65 64 |l.), as |returned|
|000003e0| 20 62 79 20 74 68 65 20 | 60 74 74 79 27 20 63 6f | by the |`tty' co|
|000003f0| 6d 6d 61 6e 64 2e 20 20 | 41 20 76 61 6c 75 65 20 |mmand. |A value |
|00000400| 6f 66 20 6e 69 6c 20 6d | 65 61 6e 73 0a 75 73 65 |of nil m|eans.use|
|00000410| 20 74 68 65 20 73 74 64 | 69 6e 20 61 6e 64 20 73 | the std|in and s|
|00000420| 74 64 6f 75 74 20 61 73 | 20 70 61 73 73 65 64 20 |tdout as| passed |
|00000430| 74 6f 20 58 45 6d 61 63 | 73 20 66 72 6f 6d 20 74 |to XEmac|s from t|
|00000440| 68 65 20 73 68 65 6c 6c | 2e 0a 20 20 49 66 20 54 |he shell|.. If T|
|00000450| 45 52 4d 49 4e 41 4c 2d | 54 59 50 45 20 69 73 20 |ERMINAL-|TYPE is |
|00000460| 6e 6f 6e 2d 6e 69 6c 2c | 20 69 74 20 73 68 6f 75 |non-nil,| it shou|
|00000470| 6c 64 20 62 65 20 61 20 | 73 74 72 69 6e 67 20 73 |ld be a |string s|
|00000480| 70 65 63 69 66 79 69 6e | 67 20 74 68 65 0a 74 79 |pecifyin|g the.ty|
|00000490| 70 65 20 6f 66 20 74 68 | 65 20 74 65 72 6d 69 6e |pe of th|e termin|
|000004a0| 61 6c 20 61 74 74 61 63 | 68 65 64 20 74 6f 20 74 |al attac|hed to t|
|000004b0| 68 65 20 73 70 65 63 69 | 66 69 65 64 20 74 74 79 |he speci|fied tty|
|000004c0| 2e 20 20 49 66 20 69 74 | 20 69 73 20 6e 69 6c 2c |. If it| is nil,|
|000004d0| 0a 74 68 65 20 74 65 72 | 6d 69 6e 61 6c 20 74 79 |.the ter|minal ty|
|000004e0| 70 65 20 77 69 6c 6c 20 | 62 65 20 69 6e 66 65 72 |pe will |be infer|
|000004f0| 72 65 64 20 66 72 6f 6d | 20 74 68 65 20 54 45 52 |red from| the TER|
|00000500| 4d 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 20 76 61 |M enviro|nment va|
|00000510| 72 69 61 62 6c 65 2e 22 | 5d 29 0a 28 66 73 65 74 |riable."|]).(fset|
|00000520| 20 27 6d 61 6b 65 2d 78 | 2d 64 65 76 69 63 65 20 | 'make-x|-device |
|00000530| 23 5b 28 26 6f 70 74 69 | 6f 6e 61 6c 20 64 69 73 |#[(&opti|onal dis|
|00000540| 70 6c 61 79 20 61 72 67 | 76 2d 6c 69 73 74 29 20 |play arg|v-list) |
|00000550| 22 c0 c1 c2 5c 6e 42 c3 | 0b 42 44 5c 22 87 22 20 |"...\nB.|.BD\"." |
|00000560| 5b 6d 61 6b 65 2d 64 65 | 76 69 63 65 20 78 20 64 |[make-de|vice x d|
|00000570| 69 73 70 6c 61 79 20 61 | 72 67 76 2d 6c 69 73 74 |isplay a|rgv-list|
|00000580| 5d 20 35 20 22 5c 0a 43 | 72 65 61 74 65 20 61 20 |] 5 "\.C|reate a |
|00000590| 6e 65 77 20 64 65 76 69 | 63 65 20 63 6f 6e 6e 65 |new devi|ce conne|
|000005a0| 63 74 65 64 20 74 6f 20 | 44 49 53 50 4c 41 59 2e |cted to |DISPLAY.|
|000005b0| 0a 4f 70 74 69 6f 6e 61 | 6c 20 61 72 67 75 6d 65 |.Optiona|l argume|
|000005c0| 6e 74 20 41 52 47 56 2d | 4c 49 53 54 20 69 73 20 |nt ARGV-|LIST is |
|000005d0| 61 20 6c 69 73 74 20 6f | 66 20 73 74 72 69 6e 67 |a list o|f string|
|000005e0| 73 20 64 65 73 63 72 69 | 62 69 6e 67 20 63 6f 6d |s descri|bing com|
|000005f0| 6d 61 6e 64 20 6c 69 6e | 65 0a 6f 70 74 69 6f 6e |mand lin|e.option|
|00000600| 73 2e 22 5d 29 0a | |s."]). | |
+--------+-------------------------+-------------------------+--------+--------+